<?php


namespace App\Admin\Actions\Post;

use App\Models\Broker;
use Dcat\Admin\Grid;
use Dcat\Admin\Grid\LazyRenderable;

class BrokerCompany extends LazyRenderable
{
    public function grid():Grid
    {
        return Grid::make(new \App\Models\BrokerCompany(), function (Grid $grid) {
            $grid->column('id')->sortable();
            $grid->column('company_name')->sortable();
            $grid->filter(function (Grid\Filter $filter) {
                $filter->equal('id');

            });
        });
    }
}
